package com.zte.springboot_smbms.service;

import com.zte.springboot_smbms.pojo.SmbmsAddress;

import java.util.List;

public interface AddressService {
    List<SmbmsAddress> findAllAddress();

    /**
     * 通过id属性查找SmbmsAddress
     * @param id
     * @return
     */
    public List<SmbmsAddress> findAddressById(Long id);

    /**
     * 向数据库中添加smbmProvider对象
     * @param address
     * @return
     */
    public boolean addAddress(SmbmsAddress address);

    /**
     * 根据id属性删除对应的SmbmsAddress对象
     * @param id
     * @return
     */
    public boolean delAddress(Long id);

    /**
     * 通过id属性修改对应的smbmsBill中的数据
     * @param id
     * @param address
     * @return
     */
    public boolean updateAddress(Long id, SmbmsAddress address);
}
